package com.demo.vueservice.web;

import com.demo.vueservice.repository.UserRepository;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 启动类
 *
 * @author cxliang
 * @date 2018/05/16
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.demo.vueservice.*")
@EntityScan(basePackages = "com.demo.vueservice.common.entity")
@EnableJpaRepositories(basePackages = "com.demo.vueservice.repository")
public class App {

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }
}
